import request from '@/utils/request'

const api = {
  imports: '/v1/auth/salary/import',
  query: '/v1/auth/salary',
  deletes: '/v1/auth/salary'
}


export const getList = e => {
  return request({
    url: api.query,
    method: 'get',
    params: e
  })
}

export const imports = e => {
  return request({
    url: api.imports,
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data: e
  })
}

export const deletes = id => {
  return request({
    url: api.deletes + "/" + id,
    method: 'delete',
  })
}